home *** CD-ROM | disk | FTP | other *** search
- /*
- IMAGE FX IMAGES TO ANIM 5
- By J.L. White
- ©1994 Merlin's Software
-
- Create Animation From Individual Images
- ImageFX Script
-
- Batch Factory Batch Conversion Scripts are basically Arexx scripts that
- allow you to pass certain parameters to the external program you wish
- to use to convert the images from one format to another. You can pass
- five different strings from Batch Factory to the script by using the
- following commands:
-
- $N = This will pass the current selected filename.
- $P = This will tell Batch Factory to ask for a path to save new frames to.
- $# = This will pass the current frame number in the script.
- $T = This will pass the total number of frames in the script.
- $A = This will pass an offset number to be used to save frames with.
-
- NOTE: The following line is required to work as a Batch Factory Script:
-
- PARSE=$N $# $T
-
- */
-
- options results
- call Locate_ImageFX
-
- address "IMAGEFX.1"
- arg InPic FrameNum TotalNum
-
- if FrameNum = 1 then do
- ScreenToFront
- RequestResponse "This Will Use Your Current Render Mode To Create Animation!"
- if rc ~= 0 then do
- RequestNotify "You Must Abort Script & Select Correct Render Mode!"
- ScreenToBack
- address command "Wait 3"
- exit
- end
- RequestString '"Enter Path & Name To Use For Animation!"'
- Answer = Result
- RequestResponse "Do You Want To Convert The Images To Grey Scale?"
- Answer2 = "YES"
- if rc ~= 0 then Answer2 = "NO"
- call open TempFile,"Ram:IFITA5",W
- call writeln TempFile,Answer
- call writeln TempFile,Answer2
- call close TempFile
- end
- else do
- call open TempFile,"Ram:IFITA5",R
- line = readln(TempFile)
- parse var line Answer
- line = readln(TempFile)
- parse var line Answer2
- call close TempFile
- end
- LoadBuffer InPic Force Smooth
- if Answer2 = "YES" then Color2Grey 333 334 333
- Render Go
- if FrameNum = TotalNum then
- SaveRenderedAs ANIM Answer Close
- else
- SaveRenderedAs ANIM Answer Keep
- if FrameNum = TotalNum then do
- address command "delete >NIL: Ram:IFITA5"
- end
- exit
-
- Locate_ImageFX:
- if (POS('IMAGEFX.1',SHOW('Ports')) = 0)
- then do
- address command 'run < nil: > nil: IMAGEFX:ImageFX'
- address command 'wait 7'
- end
- return
-
-